﻿using System;
using System.Diagnostics.Contracts;
using Isuka.Excel.Events;

namespace Isuka.Excel
{
    partial class XWorksheet
    {
        DocEvents docEvents;

        protected DocEvents DocEvents
        {
            get
            {
                return docEvents ?? (docEvents = new DocEvents(this));
            }
        }

        public event Action<XRange> RangeChanged
        {
            add
            {
                DocEvents.ChangeEvent += value;
            }
            remove
            {
                DocEvents.ChangeEvent -= value;
            }
        }
    }
}
